/**
 * 
 */
package com.cqan.entity.resp;

import com.cqan.orm.Page;

/**
 * @Description TODO
 * @author slaton.wu@gmail.com
 * @date 2012-7-5下午5:30:46
 *
 */
@SuppressWarnings("serial")
public class PageInfoResp<T> extends BaseResp {

	
	private int pageNo;
	
	private int pageSize;
	
	private long totalCount;
	
	private int totalPage;
	
	public PageInfoResp(){
		
	}
	public PageInfoResp(Page<T>  page){
		this.pageNo = page.getPageNo();
		this.pageSize = page.getPageSize();
		this.totalCount = page.getTotalCount();
		this.totalPage = page.getTotalPages();
	}

	public int getPageNo() {
		return pageNo;
	}

	public int getPageSize() {
		return pageSize;
	}

	public long getTotalCount() {
		return totalCount;
	}

	public int getTotalPage() {
		return totalPage;
	}


	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public void setTotalCount(long totalCount) {
		this.totalCount = totalCount;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	
	
}
